<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Index/Tpl/Category/css/top_list.css" />
<title>顶级列表页</title>
</head>
<body>
<!-- 公用头部开始 -->
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><link rel="shortcut icon" href="http://localhost/qm_shop/./Qmshop/App/Index/Tpl/Public/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Index/Tpl/Public/css/common.css" />
<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Index/Tpl/Public/css/index.css" />
<script type="text/javascript" src="http://localhost/qm_shop/./Qmshop/App/Index/Tpl/Public/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src='http://localhost/qm_shop/./Qmshop/App/Index/Tpl/Public/js/index.js'></script>
<!-- 头部开始 -->
	<div id="header">
		<div class="headBox">
			<div class="headTop">
					<div id="loginCart">
						<div class="login">
							<a href="">登陆</a>
							<a href="">注册</a>
						</div>
						<div class="cart">
							<a href="" target="_blank">购物车<span>0</span>件</a>
						</div>
					</div>
					<h1 id="logo">
						<a href="http://localhost/qm_shop"></a>
					</h1>
			</div>
			<div class="headBottom">
				<ul>
					<li class="homePage">
						<a href="http://localhost/qm_shop">首页</a>
					</li>
					<li class="category">
						<a href="<?php echo U('Category/top_list');?>">分类</a>
						<div class="content">
							<div class="widget">
								<div class="cate">
									<img src="./images/category.jpg" alt="截图的图片,后更改后内容" />
									<div class="dot"></div>
								</div>
							</div>
						</div>
					</li>
					<li>
						<a href="">市集</a>
					</li>
					<li>
						<a href="">市集</a>
					</li>
					<li>
						<a href="">市集</a>
					</li>
					<li>
						<a href="">市集</a>
					</li>
				</ul>
				<div class="search">
					<form action="" method="">
						<input type="hidden" />
						<input type="hidden" />
						<input type="text" placeholder="请输入要搜索的关键词" name="keyword"/>
						<a href="javascript:" class="searchBtn"></a>
					</form>
				</div>
			</div>
		</div>
	</div>
<!-- 头部结束 -->
<!-- 公用头部结束 -->
<div id="title" class="row ct">
	 <div class="titleLabel ct">
	 	<h1>全部商品</h1>
	 </div>
</div>
<div id="content" class="departments row">

	<?php if(is_array($cate)):?><?php  foreach($cate as $value){ ?>
		<div class="column">
			<div class="slide shadowedLight">
				<a href="javascript:" class="topCategory">
					<img src="http://localhost/qm_shop/<?php echo $value['clogo'];?>" alt="顶级分类logo" class="slideImg"/>
					<div class="slideLabel shadowed">
						<div class="slideTitle ct"><?php echo $value['cname'];?></div>
					</div>
				</a>
				<div class="slideNav fixed">
					<ul>
						<?php if(is_array($value['down'])):?><?php  foreach($value['down'] as $v){ ?>
							<li>
								<a href="<?php echo U('Category/sub_list',array('pid'=>$v['cid']));?>" target="_blank"><?php echo $v['cname'];?></a>
							</li>
						<?php }?><?php endif;?>
					</ul>
				</div>
			</div>
		</div>
	<?php }?><?php endif;?>

</div>
<!-- 公用页脚开始 -->
<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!-- 底部版权信息开始 -->
<div id="footer">
	<div class="footerTop">
		<div class="footerTopCon fixed">
			<div class="jingcai fl">
				<p class="fTitle">更多精彩</p>
				<ul>
					<li>
						<a href="" target="_blank">闪购</a>
					</li>
					<li>
						<a href="" target="_blank">闪购</a>
					</li>
					<li>
						<a href="" target="_blank">闪购</a>
					</li>
					<li>
						<a href="" target="_blank">闪购</a>
					</li>
					<li>
						<a href="" target="_blank">闪购</a>
					</li>
					<li>
						<a href="" target="_blank">闪购</a>
					</li>
				</ul>
			</div>
			<div class="chengnuo fl">
				<p class="fTitle">我们承诺</p>
				<ul>
					<li>365天不打烊</li>
					<li>365天不打烊</li>
					<li>365天不打烊</li>
					<li>365天不打烊</li>
					<li>365天不打烊</li>
					<li>365天不打烊</li>
				</ul>
			</div>
			<div class="guanzhu fl">
				<p class="fTitle">在这里关注我们</p>
				<ul>
					<li><a href="" target="_blank">新浪微博</a>
					</li>
					<li><a href="" target="_blank">新浪微博</a>
					</li>
					<li><a href="" target="_blank">新浪微博</a>
					</li>
				</ul>
			</div>
			<div class="tdCode fl"><img src="http://localhost/qm_shop/./Qmshop/App/Index/Tpl/Public/images/edCode.png" alt="二维码占位" /></div>
		</div>
	</div>
	<div class="footerBottom">
		<div class="footerBottomCon">
			<p class='footerAd'>高端定制上哇噻网</p>
			<div class="footerNav ct">
				<a href="" target="_blank">关于我们</a>
				<a href="" target="_blank">关于我们</a>
				<a href="" target="_blank">关于我们</a>
				<a href="" target="_blank">关于我们</a>
				<a href="" target="_blank">关于我们</a>
				<a href="" target="_blank">关于我们</a>
				<a href="" target="_blank">关于我们</a>
				<a href="" target="_blank">关于我们</a>
				<a href="" target="_blank">关于我们</a>
				<a href="" target="_blank">关于我们</a>
				<a href="" target="_blank">关于我们</a>
				<a href="" target="_blank">关于我们</a>
				<a href="" target="_blank">关于我们</a>
			</div>
			<p class="beian ct">北京哇噻网信息技术有限公司 WowSai.com Copyright© 2008-2013 [京ICP备10020900][京ICP证090011号]</p>
			<div class="zhengshu">
				<a href="" target="_blank"><img src="http://localhost/qm_shop/./Qmshop/App/Index/Tpl/Public/images/108_40_cart.png" alt="证书图片占位" /></a>
				<a href="" target="_blank"><img src="http://localhost/qm_shop/./Qmshop/App/Index/Tpl/Public/images/108_40_cart.png" alt="证书图片占位" /></a>
				<a href="" target="_blank"><img src="http://localhost/qm_shop/./Qmshop/App/Index/Tpl/Public/images/108_40_cart.png" alt="证书图片占位" /></a>
			</div>
		</div>
	</div>
	<div class="footerBlank fixed"></div>
</div>
<!-- 底部版权信息结束 -->
<!-- 公有页脚结束 -->
</body>
</html>